char = input().strip()
for i in range(3):
    spaces = 2 - i
    stars = 2 * i + 1
    print(' ' * spaces + char * stars)